/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {

	__webpack_require__(1);
	__webpack_require__(6);
	__webpack_require__(8);
	__webpack_require__(9);
	__webpack_require__(10);

/***/ },
/* 1 */
/***/ function(module, exports) {

	// removed by extract-text-webpack-plugin

/***/ },
/* 2 */,
/* 3 */,
/* 4 */,
/* 5 */,
/* 6 */
/***/ function(module, exports) {

	// removed by extract-text-webpack-plugin

/***/ },
/* 7 */,
/* 8 */
/***/ function(module, exports) {

	/**
	 * - dm_notify.js -
	 * A Light jQuery notification plugin. For websites and mobile apps.
	 *
	 * author: Dionisis Mastavralis
	 * date: July 28, 2015
	 * version: 0.1.0
	 * copyright - GNU GPL
	 */

	/* Shows a notification or warning messages on the screen.
	 * Params:
	 *  text: The text to show
	 	time: The time for the notification to auto close.
	 *  color: The color of the notification. red, green, blue, orange, yellow or custom (Based on Bootstrap library)
	 *
	*/

	//The notification function
	function dm_notification(text, time, color, icon) {
	    var icon_span = "",
	        html_element,
	        time = time,
	        $cont = $('#dm-notif'),
	        colorArr = ['red', 'green', 'blue', 'yellow', 'orange', 'white'];

	    if (time) {
	        time = time;
	    } else {
	        time = 5000;
	    }

	    if (icon) {
	        icon_span = "<span class='" + icon + "'></span> ";
	    }

	    if (color) {
	        color = color;
	    } else {
	        color = colorArr[Math.floor(Math.random() * colorArr.length)];
	    }

	    // Create the HTML element
	    html_element = $('<div class="dm-notification dm-notify-' + color + '">' + icon_span + text + '</div>').fadeIn('fast');

	    // Append the label to the cont
	    $cont.append(html_element);

	    // Remove the notification on click
	    html_element.on('click', function () {
	        dm_notification_close($(this));
	    });

	    // After time seconds, the notification fades out
	    setTimeout(function () {
	        dm_notification_close($cont.children('.dm-notification').first());
	    }, time);
	}

	function dm_notification_close(elem) {
	    // if you don't pass an argument the function removes all alerts

	    if (typeof elem !== "undefined") {
	        elem.fadeOut('fast', function () {
	            $(this).remove();
	        });
	    } else {
	        $('.alert').fadeOut('fast', function () {
	            $(this).remove();
	        });
	    }
	}

/***/ },
/* 9 */
/***/ function(module, exports) {

	function getJson() {
	    $.get("http://192.168.109.29:8080/207Shared/GetCurrent", function (data, status) {

	        if (status == "success") {
	            var obj,
	                student_html = "",
	                report_html = "",
	                $student = $("#student"),
	                $container = $('#report-content');

	            num = 0;
	            $student.empty();
	            obj = JSON.parse(data);
	            console.log(data);
	            $.each(obj, function (index, comment) {
	                // generate the left list

	                $("#student li a").each(function () {
	                    // console.log($(this).text().slice(1, -1));
	                    // console.log(comment['name']);
	                    if (comment['name'] == $(this).text().slice(1, -1)) {
	                        console.log('run');
	                        $(this).children('span').html(parseInt($(this).children('span').text()) + 1);
	                    }
	                });

	                student_html = '<a href="#section-' + (num + 1) + ' "> ' + comment['name'] + '<span class="badge pull-right">1</span></span></a>';

	                // generate the right part
	                report_html = '<div class="page-header"><h2>' + comment['name'] + '第XX周周报 <small>' + comment['subject'] + '</small></h2></div><h3>本周工作总结</h3>' + formatList(comment['summary']) + '<h3>本周存在问题</h3>' + formatList(comment['problem']) + '<h3>下周工作计划</h3>' + formatList(comment['goal']);

	                var $li = $("<li></li>");
	                $li.html(student_html);
	                $student.append($li);

	                var $div_report = $("<section></section>");
	                $div_report.attr('id', 'section-' + (num + 1));
	                $div_report.html(report_html);
	                $container.append($div_report);

	                num = index + 1;
	            });

	            // console.log("数据：" + data + "\n状态：" + status);
	        } else {
	            alert("stat us: " + status);
	        }
	    });
	}
	getJson();

	function formatList(list) {
	    var num = 1,
	        html = "";
	    for (i in list) {
	        html += '<p>' + num + '.' + list[i] + '</p>';
	        num += 1;
	    }
	    return html;
	}

/***/ },
/* 10 */
/***/ function(module, exports) {

	/**
	 * Created by tsingwong on 16-6-29.
	 */

	var CometPolling = function () {
	    return {
	        init: function () {

	            $.ajax({
	                type: "get",
	                dataType: "json",
	                url: "http://192.168.109.29:8080/207Shared/GetNew",
	                timeout: 1200000,
	                success: function (data, status) {
	                    console.log(data);
	                    var obj,
	                        student_html = "",
	                        report_html = "",
	                        $student = $("#student"),
	                        $container = $('#report-content');

	                    obj = eval(data);
	                    console.log(obj);

	                    index = num;
	                    // generate the left list
	                    student_html = '<a href="#section-' + (index + 1) + ' "> ' + obj['name'] + '</a>';
	                    var $li = $("<li></li>");
	                    $li.html(student_html);
	                    $student.append($li);

	                    // generate the right part
	                    report_html = '<div class="page-header"><h2>' + obj['name'] + '第XX周周报 <small>' + obj['subject'] + '</small></h2></div><h3>本周工作总结</h3>' + formatList(obj['summary']) + '<h3>本周存在问题</h3>' + formatList(obj['problem']) + '<h3>下周工作计划</h3>' + formatList(obj['goal']);

	                    var $div_report = $("<section></section>");
	                    $div_report.attr('id', 'section-' + (index + 1));
	                    $div_report.html(report_html);
	                    $container.append($div_report);

	                    dm_notification('收到来自' + obj['name'] + '的新周报', 5000);

	                    CometPolling.init();
	                },
	                error: function (err, status) {
	                    console.log(status);
	                    console.log(err);
	                    if (status == "timeout") {
	                        console.log("timeout");
	                        CometPolling.init();
	                    }
	                }

	            });
	        }
	    };
	}();

/***/ }
/******/ ]);